<?php
/**
 * POD
 *
 * ${license}
 *
 * @category	POD
 * @package		POD_Office_Attribute
 * @copyright	${copyright}
 * @license		${license}
 * @version		${$version}
 * @author		Ziv Perry (http://zivperry.com)
 */


class POD_Office_Attribute_Paragraph extends POD_Office_Attribute {

	/**
	 * @param int $attr
	 * @return POD_Office_Attribute_Paragraph
	 */
	public function setId($attr) {
		// TODO: validate $attr is string
		$this['text:id'] = $attr;
		return $this;
	}
	
	/**
	 * @param int $attr
	 * @return POD_Office_Attribute_Paragraph
	 */
	public function setStyleName($attr) {
		// TODO: validate $attr is NCName
		$this['text:style-name'] = $attr;
		return $this;
	}

	/**
	 * @param bool $attr
	 * @return POD_Office_Attribute_Paragraph
	 */
	public function setClassNames($attr) {
		// TODO: validate $attr is list of zero or more of NCName
		$this['text:class-names'] = $attr;
		return $this;
	}
	
	/**
	 * @param int $attr
	 * @return POD_Office_Attribute_Paragraph
	 */
	public function setCondStyleName($attr) {
		// TODO: validate $attr is NCName
		$this['text:cond-style-name'] = $attr;
		return $this;
	}
}
